# MakeFile 工程文件
# Author Mr.Hu
MAKE = make
gnu_gcc = 
ifdef gnu_gcc
CC := gcc
else
CC := cc
endif
curdir := $(shell pwd)
src := $(wildcard $(curdir)/*.c)
object := $(patsubst %.c, %.o, $(notdir $(src)))

all:$(object)

# $< 所有的依赖目标集 $@ 所有的
$(object):%.o:%.c
	$(CC) -c $< -o $@

bmake:
	echo $(src)
	echo $(object)
	cd input && $(MAKE)

.PHONY:clean
clean:
	-rm -rf *.o main
